package com.mingqijia.gassafety.db.mapper;

import com.mingqijia.gassafety.db.entity.RecordControllerHistory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mingqijia.gassafety.db.entity.vo.EquipmentListParamVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 控制器上报数据历史 Mapper 接口
 * </p>
 *
 * @author guoliang.lao
 * @since 2023-10-12
 */

@Mapper
@Repository
public interface RecordControllerHistoryMapper extends BaseMapper<RecordControllerHistory> {

    //新增上报数据历史表
    boolean saveData(@Param("history")RecordControllerHistory history, @Param("month") String month);

    void deleteRecordHistory(@Param("month") String month);

    List<RecordControllerHistory> selectListByDevice(@Param("deviceId") String deviceId, @Param("consumerId") Integer consumerId,
                                                        @Param("spId") String spId, @Param("month") String month);
}
